import request from '@/utils/request'

// 查询开药问诊管理列表
export function listPrescriptionConsult(query) {
  return request({
    url: '/medical/prescriptionConsult/list',
    method: 'get',
    params: query
  })
}

// 查询开药问诊管理详细
export function getPrescriptionConsult(id) {
  return request({
    url: '/medical/prescriptionConsult/' + id,
    method: 'get'
  })
}

// 新增开药问诊管理
export function addPrescriptionConsult(data) {
  return request({
    url: '/medical/prescriptionConsult',
    method: 'post',
    data: data
  })
}

// 修改开药问诊管理
export function updatePrescriptionConsult(data) {
  return request({
    url: '/medical/prescriptionConsult',
    method: 'put',
    data: data
  })
}

// 删除开药问诊管理
export function delPrescriptionConsult(id) {
  return request({
    url: '/medical/prescriptionConsult/' + id,
    method: 'delete'
  })
}
